<?php
    require_once( 'includes/common.inc.php' );
    
    Authorizer::isUserLoggedIn();
    $smarty = new AdvancedSmarty();
    $smarty->caching = false;
    
    $fileManager = new FileManager();   
    $fileList = array( 'fileList' => $fileManager->getFileList() );
    $varArray = array
    (
        'title' => 'Uploaded',
        'description' => 'It\'s free and always will be.',
        'css' => '/css/style.css',
        'fileList' => $smarty->getView( 'file_list/print_elements.tpl', $fileList )
    );
    
    $smarty->buildLayout( 'file_list.tpl', $varArray );
?>